#include<iostream>
using namespace std;
int main()
{
	int n,k,i=1;
	double sum=1;
	cin>>k;
	while(sum<=k)
	{
		i++; 
		sum=sum+1.0/i;
	}
	
	cout<<i<<endl;
	return 0;
}
